package com.jadesoft.test;

import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;

public class Parent implements Serializable{
	private Long id;
	private Set children = new HashSet();
	private String name;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Set getChildren() {
		return children;
	}
	public void setChildren(Set children) {
		this.children = children;
	}
	public void addChild(Child child){
		this.children.add(child);
		child.setParent(this);
	}
}
